package com.thc.orderfallback;

import com.thc.domin.User;
import com.thc.feignclient.UserFeignClient;
import org.springframework.stereotype.Component;

@Component
public class UserClientFallback implements UserFeignClient {

    @Override
    public User findById(Long id) {

        return new User(-1L,"无此用户","USer服务异常");
    }
}
